package com.jsy.testlock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jsy.testlock.entity.Product;

/**
 * (Product)表服务接口
 *
 * @author: SongyangJi
 * @since: 2021-11-30 20:44:04
 * @description:
 */

public interface ProductService extends IService<Product> {

    boolean buyNonLock(int id);

    boolean buyProductOptimisticWithRetry(int id);

    boolean buyProductPessimistic(int id);

    boolean buyProductOptimistic(int id);

}
